﻿using Microsoft.EntityFrameworkCore.Metadata.Internal;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GuanYijia.Application.OutPut
{
    public class SalesOrderOutput
    {
       
        //销售订单Id
        public int salesOrdersid { get; set; }

        //客户主键
        public int? supplierId { get; set; }
       
        //客户名称
        public string? customer { get; set; }
        //单据编号
        public string? Documentnumber { get; set; }
        //单据时间

        public DateTime? DocumentTime { get; set; } 
        
        //产品名称(商品信息)
        public string? product_name { get; set; }
        //操作人主键
        public int CreatorId { get; set; }
        //操作人
        public string? CreatorName { get; set; }
        //数量

        public int? number { get; set; }
        //合计金额
        

        public decimal? total_price { get; set; }
        //收取定金
       
        public decimal? deposit { get; set; }
        //单据状态(未审核、已审核)
        public bool? status { get; set; } = false;
        //备注
        public string? remark { get; set; }

        //含税合计

        public decimal? taxtotal { get; set; }

        //销售员
        public string? SalesName { get; set; }
        //优惠率
        public decimal? discount { get; set; }
        //采购进度(采购状态:0未采购、2完成采购、3部分采购)
        public bool? purchase_status { get; set; } = false;
        //收款优惠
        public decimal? Payoutoffers { get; set; }
        //优惠后金额
        public decimal? discount_last_money { get; set; }
        //结算账户
        public string? name { get; set; }


    }
    public class SalesOutboundOutput
    {
        //销售订单Id
        public int salesOrdersid { get; set; }

        //客户主键
        public int? supplierId { get; set; }
        //客户名称
        public string? customer { get; set; }
        //单据编号
        public string? Documentnumber { get; set; }
        //单据时间

        public DateTime? DocumentTime { get; set; }

        //产品名称(商品信息)
        public string? product_name { get; set; }
        //操作人主键
        public int CreatorId { get; set; }
        //操作人
        public string? CreatorName { get; set; }
        //数量

        public int? number { get; set; }
        //合计金额


        public decimal? total_price { get; set; }
        //收取定金

        public decimal? deposit { get; set; }
        //单据状态(未审核、已审核)
        public bool? status { get; set; } = false;
        //备注
        public string? remark { get; set; }
        //本次收款
       
        public decimal? Collection { get; set; }
        //含税合计
       
        public decimal? taxtotal { get; set; }
        //待收金额
       
        public decimal? Chargeamount { get; set; }

        //仓库名称
        public int depot_id { get; set; }

        //关联订单号
        public string? link_number { get; set; }
        //账户主键
        public int AccountId { get; set; }

        //优惠率
        public decimal? discount { get; set; }
       
        //收款优惠
        public decimal? Payoutoffers { get; set; }
       
        //结算账户
        public string? name { get; set; }
        //其它费用
        public decimal? otherfees { get; set; }

        //扣除订金
      
        public decimal? Deductdeposit { get; set; }
        //本次欠款
       
        public decimal? debt { get; set; }
        //销售员
        public string? SalesName { get; set; }


    }
    

   public class SalesReturnOutput
    {
        //销售订单Id
        public int salesOrdersid { get; set; }
        //客户主键
        public int? supplierId { get; set; }
        //客户名称
        public string? customer { get; set; }
        //单据编号
        public string? Documentnumber { get; set; }
        //单据时间
        public DateTime? DocumentTime { get; set; }
        //产品名称(商品信息)
        public string? product_name { get; set; }
        //操作人主键
        public int CreatorId { get; set; }
        //操作人
        public string? CreatorName { get; set; }
        //数量
        public int? number { get; set; }
        //合计金额
        public decimal? total_price { get; set; }
        //收取定金
        public decimal? deposit { get; set; }
        //单据状态(未审核、已审核)
        public bool? status { get; set; } = false;
        //备注
        public string? remark { get; set; }
        //本次收款
        public decimal? Collection { get; set; }
        //含税合计
        public decimal? taxtotal { get; set; }
        //待收金额
        public decimal? Chargeamount { get; set; }
        //仓库名称
        public int depot_id { get; set; }
        //关联订单号
        public string? link_number { get; set; }
        //账户主键
        public int AccountId { get; set; }
        //本次退款
        public decimal? refund { get; set; }
        //本次欠款
        public decimal? debt { get; set; }
        //待退金额
        public decimal? Refundamount { get; set; }

        //关联单据
        public string? Associateddocuments { get; set; }
        //销售员
        public string? SalesName { get; set; }
        //优惠率
      
        public decimal? discount { get; set; }
        //退款优惠
      
        public decimal? Refundoffers { get; set; }

        //其它费用
        public decimal? otherfees { get; set; }
        //结算账户
        public string? name { get; set; }


    }




}
